package org.example.infrastructure.persistent.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.domain.activity_manage.model.entity.ActivityEntity;
import org.example.infrastructure.persistent.po.ActivityPO;
import org.example.infrastructure.persistent.po.LotteryRecordPO;

import java.util.List;

/**
 * @author lxc18
 * @date 2025/3/12 11:42
 * @description ILotteryRecord
 */
@Mapper
public interface IActivityDao {
    boolean createActivity(ActivityPO activityPO);

    boolean updateActivity(ActivityPO activityPO);

    boolean deleteActivity(Long activityId);


    //    支持模糊查询（根据名字）
    List<ActivityPO> queryActivityByName(String activityName);
    //根据id查询活动
    ActivityPO queryActivityById(Long activityId);

    //    支持分页查询
    List<ActivityPO> queryActivityByPage(int pageNum, int pageSize);
}
